﻿using System.Windows;
using System.Windows.Controls;

namespace Red.Controls.Indicators
{
    public partial class Status : UserControl
    {
        #region Dependency Properties

        public static readonly DependencyProperty IsIndeterminateProperty = DependencyProperty.Register( "IsIndeterminate", typeof( bool ), typeof( Status ) );
        public static readonly DependencyProperty ProgressProperty = DependencyProperty.Register( "Progress", typeof( double ), typeof( Status ) );
        public static readonly DependencyProperty CanvasProperty = DependencyProperty.Register( "Canvas", typeof( Canvas ), typeof( Status ) );

        #endregion Dependency Properties

        #region Public Properties

        public Canvas Canvas
        {
            get { return (Canvas)GetValue( CanvasProperty ); }
            set { SetValue( CanvasProperty, value ); }
        }

        public bool IsIndeterminate
        {
            get { return (bool)GetValue( IsIndeterminateProperty ); }
            set { SetValue( IsIndeterminateProperty, value ); }
        }

        public bool Progress
        {
            get { return (bool)GetValue( ProgressProperty ); }
            set { SetValue( ProgressProperty, value ); }
        }

        #endregion Public Properties

        #region C-Tor

        public Status()
        {
            InitializeComponent();
        }

        #endregion C-Tor
    }
}
